<?php
/** 初始化项目 */
require '../../app/app.php';
/** 初始化数据库 */
use app\util\Mysql;
$database = Mysql::init();

if (isset($_SESSION['username']) && $_SESSION['username'] != "") {
    $count1 = $database->count("text_main");
    $count2 = $database->count("user_text");
    $list = array('count1' => $count1, "count2" => $count2);
    echo json_encode($list);

}


?>